package com.windaka.suizhi.annotation;


import com.windaka.suizhi.utils.DtoCheckUtils;

import java.lang.annotation.*;

/**
 * <p><strong>导出Excel的辅助信息注解</strong></p>
 * <li>
 * <p>
 *     <strong>示例1: @ExcelInfo(number = 1, title="名称")</strong> <br>
 *     @DtoCheck(message = "缺少用户名")
 *     private String username;
 *     @DtoCheck(message = "缺少密码")
 *     private String password;
 *     结果：抛出异常 参数必填
 * </p>
 * </li>
 * @author wzk
 * @see DtoCheckUtils
 * @since 15:44 2021/12/3
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface DtoCheck {

    /**
     * 抛出异常的信息
     */
    String message() default "缺少必要字段";

}
